package entity;

import java.util.Date;

/**
 * Leave entity. @author MyEclipse Persistence Tools
 */

public class Leave implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private Integer deptid;
	private Date begindate;
	private Date enddate;
	private Double days;
	private Integer wordid;
	private String remark;
	private Date ordertime;
	private Integer userid;
	private Integer createid;
	private Integer deptmanagerid;
	private Integer status;
	
	
	// Constructors

	/** default constructor */
	public Leave() {
	}

	/** minimal constructor */
	public Leave(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public Leave(Integer id, String name, Integer deptid, Date begindate,
			Date enddate, Double days, Integer wordid, String remark,
			Date ordertime, Integer userid, Integer createid,
			Integer deptmanagerid, Integer status) {
		this.id = id;
		this.name = name;
		this.deptid = deptid;
		this.begindate = begindate;
		this.enddate = enddate;
		this.days = days;
		this.wordid = wordid;
		this.remark = remark;
		this.ordertime = ordertime;
		this.userid = userid;
		this.createid = createid;
		this.deptmanagerid = deptmanagerid;
		this.status = status;
	}
	public Leave(String name,Integer deptid,Date begindate, Double days, 
			Date enddate,Integer wordid,String remark,Integer deptmanagerid,Integer status) {
		
		this.name = name;
		this.deptid = deptid;
		this.begindate = begindate;
		this.enddate = enddate;
		this.days = days;
		this.wordid = wordid;
		this.remark = remark;
		this.deptmanagerid = deptmanagerid;
	}
	
	public Leave(String name,Date begindate, Double days,Integer deptid, 
			Date enddate,Integer wordid,String remark,Integer deptmanagerid) {
		
		this.name = name;
		this.deptid = deptid;
		this.begindate = begindate;
		this.enddate = enddate;
		this.days = days;
		this.wordid = wordid;
		this.remark = remark;
		this.deptmanagerid = deptmanagerid;
	}
	public Leave(Integer id,String name,Date begindate, Double days,Integer deptid, 
			Date enddate,Integer wordid,String remark,Integer deptmanagerid) {
		this.id = id;
		this.name = name;
		this.deptid = deptid;
		this.begindate = begindate;
		this.enddate = enddate;
		this.days = days;
		this.wordid = wordid;
		this.remark = remark;
		this.deptmanagerid = deptmanagerid;
	}
	// Property accessors
	
	

	public Integer getId() {
		return this.id;
	}


	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getDeptid() {
		return this.deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	public Date getBegindate() {
		return this.begindate;
	}

	public void setBegindate(Date begindate) {
		this.begindate = begindate;
	}

	public Date getEnddate() {
		return this.enddate;
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	public Double getDays() {
		return this.days;
	}

	public void setDays(Double days) {
		this.days = days;
	}

	public Integer getWordid() {
		return this.wordid;
	}

	public void setWordid(Integer wordid) {
		this.wordid = wordid;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getOrdertime() {
		return this.ordertime;
	}

	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getCreateid() {
		return this.createid;
	}

	public void setCreateid(Integer createid) {
		this.createid = createid;
	}

	public Integer getDeptmanagerid() {
		return this.deptmanagerid;
	}

	public void setDeptmanagerid(Integer deptmanagerid) {
		this.deptmanagerid = deptmanagerid;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}